//
//  DetailBigCell.m
//  网易公开课项目
//
//  Created by 林 艺 on 13-11-12.
//  Copyright (c) 2013年 Marklin. All rights reserved.
//

#import "DetailBigCell.h"

@implementation DetailBigCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)synopsisSelected:(UIButton *)sender
{
    self.synopsisImageView.hidden = YES;
    self.coursesImageView.hidden = NO;
    self.relationImageView.hidden = NO;
    [[NSNotificationCenter defaultCenter] postNotificationName:kContentSelectedNotification object:[NSString stringWithFormat:@"%d", sender.tag-50]];
}

- (IBAction)courseSelected:(UIButton *)sender
{
    self.synopsisImageView.hidden = NO;
    self.coursesImageView.hidden = YES;
    self.relationImageView.hidden = NO;
    [[NSNotificationCenter defaultCenter] postNotificationName:kContentSelectedNotification object:[NSString stringWithFormat:@"%d", sender.tag-50]];
}

- (IBAction)relationSelected:(UIButton *)sender
{
    self.synopsisImageView.hidden = NO;
    self.coursesImageView.hidden = NO;
    self.relationImageView.hidden = YES;
    [[NSNotificationCenter defaultCenter] postNotificationName:kContentSelectedNotification object:[NSString stringWithFormat:@"%d", sender.tag-50]];
}

- (IBAction)goOnPlayButtonClicked:(UIButton *)sender
{
    [[NSNotificationCenter defaultCenter] postNotificationName:kGoOnPlayButtonNotification object:nil];
}
@end
